//
//  UIButton+Extension.swift
//  kingWeiBo
//
//  Created by King on 15/9/16.
//  Copyright © 2015年 King. All rights reserved.
//

import UIKit

extension UIButton{


    convenience init(title: String, imageName: String, color: UIColor = UIColor.darkGrayColor(),fontSize:CGFloat = 13 ){
        
        self.init()
        setTitle(title, forState: UIControlState.Normal)
        setImage(UIImage(named: imageName), forState: UIControlState.Normal)
        setTitleColor(color, forState: UIControlState.Normal)
        titleLabel?.font = UIFont.systemFontOfSize(fontSize)
        backgroundColor = UIColor(white: 0.95, alpha: 1.0)
    
    }

}
